<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html lang="en">

<%
    String url = request.getContextPath();
%>
<link rel="stylesheet" href="<%=url %>/css/ri.css">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业提交
    </title>

</head>
<body>
    <div id="d0" >
        <br>
        <form id="doWorkServlet" method="post" action="doWorkServlet">
        作业名称：<input type="text" value="${workName}" disabled="disabled"><br><br>
        日&emsp;&emsp;期：<input type="text" value="${date}"  name="date"><br><br><br>
        内&emsp;&emsp;容<br><br><textarea  cols="50" rows="10" class="text" disabled="disabled">${work}</textarea><br><br>
        <p>你的答案：</p>

        <textarea  cols="50" rows="10" id="t1" class="text" name="answer" ></textarea>
        <br>
       <%-- <a href="doWorkServlet"><input type="submit" value="提交"></a>--%>
            <button type="submit">提交</button>
            <input type="button" name="submit" value="返回" onclick="javascript:window.history.back(-1);">

        </form>

</div>
</body>
<script>
    var session='<%=request.getParameter("session")%>';
    if(session=='yes'){
        alert("提交成功");
    }
</script>
</html>